package com.micmac.customer.events
{
	import com.micmac.customer.vo.CorpVO;
	
	import flash.events.Event;

	public class CorpEvent extends Event
	{
		public var editData:CorpVO;
		
		public static const CORP_EDIT_FROM_RENDER:String = 'onCorpEditFromRender';
		public static const CORP_EDIT_FROM_TILE_VIEW:String = 'corpEditFromTileView';
		public static const CORP_EDIT_FROM_CORP_VIEW:String = 'corpEditFromCorpView';
		public static const CORP_EDIT_FROM_SERVICE:String = 'corpEditFromService';
		
		public static const CORP_DELETE_FROM_RENDERER:String = 'corpDeletefromRenderer';
		public static const CORP_DELETE_FROM_TILE_VIEW:String = 'corpDeleteFromTileView';
		public static const CORP_DELETE_FROM_CORP_VIEW:String = 'corpDeleteFromCorpView';
		public static const CORP_DELETE_FROM_SERVICE:String = 'corpDeleteFromService';
		
		public function CorpEvent(type:String,editData:CorpVO,bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.editData = editData;
		}
		override public function clone():Event
		{
			return new CorpEvent(type,editData,bubbles,cancelable)
		}
	}
}